﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Net.Http;
using System.Net;
using Ninject;
using Faculty = Timetable.Site.Host.Faculty.Faculty;

namespace Timetable.Site.Controllers.Api
{
    public class FacultyController : BaseApiController<Faculty>
    {
        /// <summary>
        /// Возвращает список факультетов
        /// </summary>
        /// <returns></returns>
        public HttpResponseMessage GetAll()
        {
            return CreateResponse<IEnumerable<Faculty>>(FacultyService.GetAll);
        }
    }
}
